package com.guigu.ssyx.product.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.atguigu.ssyx.model.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商品评价
 * </p>
 *
 * @author liuyang
 * @since 2025-09-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("comment")
@ApiModel(value="Comment对象", description="商品评价")
public class Comment extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "sku_id")
    @TableField("sku_id")
    private Long skuId;

    @ApiModelProperty(value = "商品名字")
    @TableField("sku_name")
    private String skuName;

    @ApiModelProperty(value = "会员昵称")
    @TableField("nick_name")
    private String nickName;

    @ApiModelProperty(value = "用户头像")
    @TableField("icon")
    private String icon;

    @ApiModelProperty(value = "星级")
    @TableField("star")
    private Boolean star;

    @ApiModelProperty(value = "会员ip")
    @TableField("ip")
    private String ip;

    @ApiModelProperty(value = "显示状态[0-不显示，1-显示]")
    @TableField("status")
    private Boolean status;

    @ApiModelProperty(value = "点赞数")
    @TableField("follow_count")
    private Integer followCount;

    @ApiModelProperty(value = "回复数")
    @TableField("reply_count")
    private Integer replyCount;

    @ApiModelProperty(value = "评论图片/视频[json数据；[{type:文件类型,url:资源路径}]]")
    @TableField("resources")
    private String resources;

    @ApiModelProperty(value = "内容")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "评论类型[0 - 对商品的直接评论，1 - 对评论的回复]")
    @TableField("type")
    private Integer type;



    @ApiModelProperty(value = "删除标记（0:不可用 1:可用）")
    @TableField("is_deleted")
    private Integer isDeleted;


}
